package com.smallcc;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@ComponentScan(basePackages = "com.smallcc.controller")//扫描控制层
@ComponentScan(basePackages = "com.smallcc.config")//配置实体文件
@ComponentScan(basePackages = "com.smallcc.service")//扫描service层
@ComponentScan(basePackages = "com.smallcc.aspect")//扫描切面
@SpringBootApplication
@MapperScan(basePackages = "com.smallcc.dataobject.mapper")//扫描mapper
@EnableJpaRepositories(basePackages = "com.smallcc.repository")
@EntityScan(basePackages="com.smallcc.dataobject")
@EnableCaching
public class SellApplication {

    public static void main(String[] args) {
        SpringApplication.run(SellApplication.class, args);
    }
}
